<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./js/vue.js"></script>
    <script src="./js/axios.js"></script>

    <!-- 引入样式 -->
    <link rel="stylesheet" href=
    "https://unpkg.com/element-ui/lib/theme-chalk/index.css">
    
    <!-- 引入组件库 -->
    <script src="https://unpkg.com/element-ui/lib/index.js"></script>
</head>
<body>
    <script>
        let vm=new Vue({
            methods: {
                getData(){
                },
                getData1(){
                    axios.get("./json/dsj2231.json").then
                    (res=>{
                        console.log(res.data);
                        this.tableData=res.data;
                    })
                }
            },
        })
    </script>
    <div>
        <el-table
      :data="tableData" 
      style="width: 100%">
      <el-table-column
        prop="学号"
        label="学号">
      </el-table-column>
      <el-table-column
        prop="姓名"
        label="姓名">
      </el-table-column>
      <el-table-column
        prop="宿舍"
        label="宿舍">
      </el-table-column>
    </el-table>

    </div>
</body>
</html>